Skip to content

chore: bump lzma-rust2 from 0.21.0 to 0.22.0 - #72

Merged
eitsupi merged 1 commit into
mainfrom
dependabot/cargo/lzma-rust2-0.22.0
Oct 18, 2026
Merged

eitsupi merged 1 commit into
mainfrom
dependabot/cargo/lzma-rust2-0.22.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 18, 2026

Copy link
Copy Markdown
Contributor

Bumps lzma-rust2 from 0.21.0 to 0.22.0.

Changelog

Sourced from lzma-rust2's changelog.

0.22.0 - 2026-10-11

Added

  • Add a bounded, streaming Bcj2Writer with four raw outputs and configurable branch conversion limits.
  • Add Bcj2Reader::finish for strict input completion.
  • Add Bcj2Reader::try_new for checked stream counts.
  • Add LzipReaderMt::new_mem_limit to limit decoder and member-buffer memory per LZIP member.
  • Add cooperative cancellation to Lzma2WriterMt, reported as EncoderCancelled.

Fixed

  • Allow the range encoder to defer more than 4 GiB of bytes in very long streams.
  • Bound pending worker jobs and ordered results in multi-threaded writers and the LZIP reader.
  • Join workers after completion, errors, and drop; return thread-spawn failures as I/O errors.
  • Synchronize worker queue closure to prevent missed shutdown wakeups.
  • Read consecutive empty LZIP members without growing the LzipReaderMt call stack.
  • Return OutOfMemory instead of panicking when a LZIP member requests an impossible allocation.
  • Reject malformed LZIP MT member spans before decoding an embedded second member.
  • Stop active LZIP member decoding when the worker pool shuts down.
  • Retry interrupted BCJ2 reads without losing fragmented branch addresses.
  • Reject truncated BCJ2 streams and incomplete branch addresses.
  • Validate the BCJ2 range stream even when the declared output is empty.
  • Preserve BCJ2 input errors after returning decoded bytes.
  • Reject invalid BCJ2 stream counts without panicking.
  • Keep BCJ2 output sizes above 4 GiB intact on 32-bit targets.
  • Wrap BCJ2 instruction positions at 32 bits.
  • Fix LzmaOptions::get_memory_usage() mixing bytes with KiB and undercounting hash-table memory.
  • Fix LzmaOptions::get_memory_usage() underestimating memory for custom lc and lp values.
  • Fix the decoder allocating and zero-filling the whole dictionary size declared in the stream header before decoding anything.
  • Fix LzmaStream growing the dictionary to the size declared in the header within its first decode pass.
  • Fix the XZ index parser reserving memory for the record count the index declares before reading any records.
Commits
  • 3825eb4 chore: prepare release v0.22.0
  • f9887af Reuse BCJ2 encoder buffers across independent streams
  • f4f3476 Optimize BCJ2 scanning and output buffering
  • dcdb530 Add a bounded streaming BCJ2 encoder
  • f87dc3e Fix range encoder deferred-byte counter overflow
  • 72a7582 Document cancellation behavior without worker details
  • 2c4ee95 Check cancellation during the final encoder flush
  • bdfaf64 Keep cancellation flags stable and distinguish pool shutdown
  • e7c75c0 Add cooperative cancellation to multithreaded LZMA2 encoding
  • 41bf0ac Reject LZIP spans containing multiple members
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [lzma-rust2](https://github.com/hasenbanck/lzma-rust2) from 0.21.0 to 0.22.0.
- [Changelog](https://github.com/hasenbanck/lzma-rust2/blob/master/CHANGELOG.md)
- [Commits](hasenbanck/lzma-rust2@v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: lzma-rust2
  dependency-version: 0.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Oct 18, 2026
@eitsupi
eitsupi merged commit 15a2586 into main Oct 18, 2026
30 of 31 checks passed
@eitsupi
eitsupi deleted the dependabot/cargo/lzma-rust2-0.22.0 branch October 18, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant